package schemas

import "github.com/gin-gonic/gin"

type LoginInput struct {
	UserName string `form:"username" json:"username" binding:"required" comment:"用户名必须填写"`
	Password string `form:"password" json:"password" binding:"required" comment:"密码必须填写"`
}

func (s *LoginInput) BindValidParam(ctx *gin.Context) error {
	return DefaultGetValidParams(ctx, s)
}

type LoginOutput struct {
	UserName string `json:"username"`
	NickName string `json:"nick_name"`
	Token    string `json:"token"`
}
